<template>
  <div>
    <div class="message_header">
      <div class="container container_ji">
        <div class="message_list">
          <div class="message_item con">消息</div>
        </div>
      </div>
    </div>
    <div class="message_header_ti"></div>

    <!-- 内容 -->
    <div class="container">
      <van-empty class="custom-image" :image="srcs" description="暂无消息" />
    </div>

    <!-- 内容 END-->

    <!-- 底部固定导航栏 -->
    <div class="shroud">
      <div class="container container_ji">
        <div class="shroudPanel">
          <div class="icon">
            <router-link to="/home" tag="div" class="iconrun"></router-link>
            <div class="img">
              <img
                src="../assets/imgs/src_assets_img_tab_tab_cv_normal.png"
                alt=""
              />
            </div>
            <span>首页</span>
          </div>
          <div class="icon">
            <router-link to="/jobwant" tag="div" class="iconrun"></router-link>
            <div class="img">
              <img
                src="../assets/imgs/src_assets_img_tab_tab_job_normal.png"
                alt=""
              />
            </div>
            <span>求职</span>
          </div>
          <div class="icon">
            <router-link to="/curr" tag="div" class="iconrun"></router-link>
            <div class="img">
              <img
                src="../assets/imgs/src_assets_img_tab_tab_lesson_normal.png"
                alt=""
              />
            </div>
            <span>课程</span>
          </div>
          <div class="icon">
            <router-link to="/message" tag="div" class="iconrun"></router-link>
            <div class="img message">
              <img
                src="../assets/imgs/src_assets_img_tab_tab_message_selected.png"
                alt=""
              />
              <ul class="list_message">
                <li class="item_message"></li>
                <li class="item_message"></li>
                <li class="item_message"></li>
                <!-- <div class="message_sum">99+</div> -->
              </ul>
            </div>
            <span class="con">消息</span>
          </div>
          <div class="icon">
            <router-link to="/personal" tag="div" class="iconrun"></router-link>
            <div class="img">
              <img
                src="../assets/imgs/src_assets_img_tab_tab_me_normal.png"
                alt=""
              />
            </div>
            <span>我</span>
          </div>
        </div>
      </div>
    </div>
    <div class="shr"></div>
    <!-- 底部固定导航栏 END-->
  </div>
</template>

<script>
import { getMesJsonData } from "../api/mes.js";
export default {
  data() {
    return {
      columnlists: null,
      srcs: require("../assets/imgs/custom.png"),
    };
  },
  methods: {
    getColumnlistsFun() {
      getMesJsonData().then((data) => {
        this.columnlists = data.columnlists;
      });
    },
  },
  created() {
    this.getColumnlistsFun();
  },
};
</script>

<style lang="scss" scoped>
.box ::v-deep .custom-image {
  position: absolute;
  top: 60px;
  bottom: 0px;
  right: 0px;
  left: 0px;
  margin: auto 0;
}

.custom-image ::v-deep .van-empty__image {
  width: 60px;
  height: 60px;
  //   background-color: #999;
}

/* 顶部固定导航条 */
.message_header {
  position: fixed;
  box-sizing: border-box;
  height: 45px;
  width: 100%;
  padding: 0 15px;
  top: 0px;
  background-color: #fff;
  z-index: 9999;
}
.message_list {
  display: flex;
  .message_item {
    padding: 0 11px;
    font-size: 16px;
    line-height: 45px;
    &.con {
      position: relative;
      padding: 0 11px;
      line-height: 45px;
      font-size: 22px;
      color: #262626;
      &::after {
        content: "";
        display: block;
        position: absolute;
        width: 16px;
        height: 3px;
        bottom: 4px;
        right: 0px;
        left: 0px;
        margin: 0 auto;
        background-color: #fb4d2a;
      }
    }
  }
}
.message_header_ti {
  height: 45px;
  box-shadow: 1px 1px 1px 0px #ccc;
}
/* 信息内容 */
.message_column {
  position: relative;
  margin: 15px 0px;
  .message_column_L {
    position: absolute;
    width: 56px;
    height: 50px;
    top: 0px;
    bottom: 0px;
    left: 10px;
    margin: auto 0;
    .message_imgs_num {
      position: absolute;
      width: 20px;
      height: 20px;
      text-align: center;
      line-height: 20px;
      border-radius: 50%;
      font-size: 12px;
      color: #fff;
      background: #ff522d;
      top: 0px;
      right: 0px;
    }
  }
}
.message_imgs {
  box-sizing: border-box;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #ccc;
  img {
    display: block;
    width: 100%;
    height: 100%;
  }
}
.message_column_R {
  display: flex;
  .message_text {
    position: relative;
    flex: 1;
    height: 100%;
    line-height: 34px;
    box-shadow: 3px 2px 4px 0px #ccc;
    margin-left: 75px;
  }
}
.message_text {
  span {
    display: inline-block;
    font-size: 12px;
    color: #999;
  }
  p {
    display: inline-block;
    font-size: 16px;
  }
}
.message_text_title {
  position: relative;
  text-align: center;
  &::after {
    content: "群活动";
    display: block;
    position: absolute;
    // width: 36px;
    height: 20px;
    line-height: 20px;
    font-size: 12px;
    color: #679cfa;
    background-color: #f4f7fc;
    top: 0px;
    bottom: 0px;
    right: -50px;
    margin: auto 0;
  }
}
.message_time {
  position: absolute;
  display: inline-block;
  width: 70px;
  height: 70px;
  top: 0px;
  right: 0px;
  text-align: center;
  line-height: 60px;
}
/* 底部固定导航条 */
.shr {
  height: 52px;
}
.shroud {
  position: fixed;
  bottom: 0px;
  right: 0px;
  left: 0px;
  .shroudPanel {
    display: flex;
    height: 52px;
    justify-content: space-between;
    text-align: center;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    background-color: #ffffff;
    & > .icon {
      margin-right: 17px;
      box-sizing: border-box;
      position: relative;
      margin-left: 17px;
      height: 52px;
      padding-top: 4px;
      flex: 1;
      .iconrun {
        display: block;
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: 999;
      }
      .img {
        img {
          width: 26px;
          height: 26px;
        }
      }
    }
    .icon {
      & > span {
        display: block;
        font-size: 9px;
        color: #5d5d5d;
        height: 10px;
        line-height: 10px;
      }
      & > .con {
        color: #555565;
      }
    }
  }
}
.message {
  position: relative;
  .list_message {
    position: absolute;
    width: 19px;
    height: 30px;
    top: 0px;
    left: 0px;
    right: 0px;
    margin: 0 auto;
  }
  .message_sum {
    position: absolute;
    box-sizing: border-box;
    width: 28px;
    height: 18px;
    background-color: #ff522d;
    border: 1px solid #fb4d2a;
    font-size: 12px;
    color: #fff;
    border-radius: 10px;
    top: -5px;
    right: -20px;
  }
}
.list_message {
  .item_message {
    display: block;
    float: left;
    width: 3px;
    height: 3px;
    margin-top: 11px;
    margin-left: 3px;
    background-color: #fff;
  }
}
</style>